package com.woniuxy.order.mapper;

import com.woniuxy.commons.entity.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author rmw
 * @date 2020/12/3 21:06
 * mapper是接口
 */
@Repository
@Mapper
public interface OrderMapper {
//    明天补sql语句
    @Insert("insert into t_order values(#{id},#{customerId},#{orderNo}," +
            "#{orderTime},#{payTime},#{payStatus}," +
            "#{startAddress},#{receiverAddress}," +
            "#{collectTime},#{valuation}," +
            "#{payType},#{money}," +
            "#{goodsWeight},#{goodsVolume}," +
            "#{goodsInformation},#{goodsType},#{distance})")
    public int addOrder(Order order);
}
